package org.hyacinth.user.config;

import org.hyacinth.common.utils.MailUtils;
import org.springframework.boot.autoconfigure.mail.MailProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.mail.javamail.JavaMailSender;

@Configuration
public class MailConfig {

    @Bean
    public MailUtils mailUtils(JavaMailSender javaMailSender, MailProperties mailProperties) {
        return new MailUtils(javaMailSender, mailProperties);
    }
}
